﻿<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
  <ribbon>
    <contextualTabs>
      <tabSet idMso="TabSetAttachments">
        <tab id="customTabAttachment" label="Team" >
          <group label="Team Portal" id="TeamAttachmentGroup">
            <button id="sendAttachmentContextualTabButton" size="large" label="Send Attachments" onAction="sendAttachmentAttachmentContextualTabButton_Action" getImage="GetImageSendAttachmentsFeature" />
          </group>
        </tab>
      </tabSet>
      <tabSet idMso="TabSetAppointment">
        <tab id="customCalendarItemContextualTab" label="Team" >
          <group id="customCalendarItemContextualTabGroup" label="Work Items">
            <toggleButton id="trackInWorkItemCalendarItemContextualTabButton" size="large" getImage="GetImageTrackInWorkItemFeature" label="Track in Work Item" onAction="trackInWorkItemCalendarItemContextualTabButton_Action" getPressed="trackInWorkItemCalendarItemContextualTabButton_GetPressed"/>
            <separator id="workItemCalendarItemContextualSeparator"/>
            <button id="relatedWorkItemCalendarItemContextualTabButton" size="large" getImage="GetImageRelatedWorkItemFeature" label="Related Work Item" onAction="relatedWorkItemCalendarItemContextualTabButton_Action" getEnabled="relatedWorkItemCalendarItemContextualTabButton_GetEnabled" />
          </group>
          <group label="Team Portal" id="TeamCalendarItemGroup">
            <button id="sendAttachmentTabSetAppointmentButton" label="Send Attachments" onAction="sendAttachmentTabSetAppointment_Action" getImage="GetImageSendAttachmentsFeature" getEnabled="sendAttachmentTabSetAppointmentButton_GetEnabled" />
            <button id="downloadAttachmentTabSetAppointmentButton" label="Attach document to Appointment" onAction="downloadAttachmentTabSetAppointmentButton_Action" getImage="GetImageDownloadAttachmentFeature" />
          </group>
          <group label="Reports" id="ReportsTabSetAppointmentGroup">
            <button id="insertReportTabSetAppointmentButton" size="large" label="Insert Report" onAction="insertReportTabSetAppointmentButton_Action" getImage="GetImageInsertReportFeature" />
          </group>
          <group label="Build" id="BuildTabSetAppointmentGroup">
            <button id="showBuildReportTabSetAppointmentButton" size="large" label="Show Build Report" onAction="showBuildReportTabSetAppointmentButton_Action" getImage="GetImageShowBuildReportFeature" getEnabled="showBuildReportTabSetAppointmentButton_GetEnabled" />
          </group>
        </tab>
      </tabSet>
    </contextualTabs>
    <tabs>
      <tab id="readMailTab" label="Team" getVisible="readMailTab_GetVisible">
        <group id="workItemMailGroup" label="Work Items">
          <toggleButton id="trackInWorkItemExplorerMailButton" getPressed="trackInWorkItemExplorerMailButton_GetPressed" size="large" getImage="GetImageTrackInWorkItemFeature" label="Track in Work Item" onAction="trackInWorkItemExplorerMailButton_Action"/>
          <separator id="workItemSeparator"/>
          <button id="relatedWorkItemExplorerMailButton" getEnabled="relatedWorkItemExplorerMailButton_GetEnabled" size="large" getImage="GetImageRelatedWorkItemFeature" label="Related Work Item" onAction="relatedWorkItemExplorerMailButton_Action" />
        </group>
        <group id="teamPortalGroup" label="Team Portal">
          <button id="sendAttachmentsExplorerMailButton" size="large" getEnabled="sendAttachmentsExplorerMailButton_GetEnabled" getImage="GetImageSendAttachmentsFeature" label="Send Attachments" onAction="sendAttachmentsExplorerMailButton_Action" />
        </group>
      </tab>
    </tabs>
  </ribbon>
  <backstage>
    <tab id="bowieTab" label="BOWIE" firstColumnMinWidth="425" firstColumnMaxWidth="425">
      <firstColumn>
        <group id="ManageTeamProjectGroup" 
               label="Manage Team Projects" 
               helperText="Connect to Team Server, Add or Remove Team Project, manage alerts, areas and iterations...">
          <primaryItem>
            <button id="MyHeroButton"
                    label="Manage Team Projects"
                    getImage="GetImageManageTeamProjectTask"
                    isDefinitive="false"
                    screentip="Click to manage Team Projects" 
                    onAction="manageTeamProjectTask_Action"/>
          </primaryItem>
        </group>
        <group id="WIFormRegionGroup" label="Work Item Form Region">
          <bottomItems>
            <checkBox id="showWIFormRegionExplorer" label="Show Work Item Form Region" getPressed="GetWIFormRegionExplorerPressed" onAction="showWIFormRegionExplorer_Action" />
          </bottomItems>
        </group>
        <!--<taskGroup id="SettingsTaskGroup" allowedTaskSizes="medium">
          <category id="zzz">
            <task id="manageTeamProjectTask" label="Manage Team Projects" description="Connect to Team Server, Add or Remove Team Project, manage alerts, areas and iterations..." getImage="GetImageManageTeamProjectTask" onAction="manageTeamProjectTask_Action"></task>
            --><!--<task id="manageMappingTask" label="Manage Mappings" description="Manage your mapping between outlook item and work items" getImage="manageMappingTask_GetImage" onAction="manageMappingTask_Action"></task>--><!--
          </category>
        </taskGroup>-->
      </firstColumn>
      <secondColumn>
        <group id="bowieGroup">
          <topItems>
            <imageControl id="bowieImage" getImage="GetImageBowieLogo"/>
          </topItems>
        </group>
        <group id="aboutBowieGroup" label="About Bewise Outlook Work Items Extensions">
          <topItems>
            <labelControl id="versionLabel" label="Version Number : 2.5.0.0" alignLabel="left"/>
            <hyperlink id="websiteHyperLink" label="http://bowie.codeplex.com" target="http://bowie.codeplex.com" alignLabel="left" />
          </topItems>
        </group>
        <group id="aboutAuthorGroup" label="About The Author">
          <topItems>
            <hyperlink id="authorWebsiteHyperLink" label="http://benoitlaut.net" target="http://benoitlaut.net" />
            <hyperlink id="emailHyperLink" label="benoit.laut@bewise.fr" target="mailto:benoit.laut@bewise.fr" />
          </topItems>
        </group>
        <taskGroup id="DonationGroup" allowedTaskSizes="large">
          <category id="donationCategory" label="Donation">
            <task id="donationTask" label="Send me a beer!" description="If you want to encourage me, go to http://www.textopint.com/ and send me a beer by SMS (my phone number : +33618470549) ;)" getImage="donationTask_GetImage" onAction="donationTask_Action"></task>
          </category>
        </taskGroup>
      </secondColumn>
    </tab>
  </backstage>
  <contextMenus>
      <contextMenu idMso="ContextMenuAttachments">
        <menu id="teamMenuReadMail" label="Team">
          <button id="sendAttachmentsReadMailMenuItem" getImage="GetImageSendAttachmentsFeature" label="Send Attachments to Team Portal" onAction="SendAttachmentsReadMailMenuItemAction" />
        </menu>
      </contextMenu>
    <contextMenu idMso="ContextMenuMailItem">
      <menu id="teamMenuMail" label="Team">
        <toggleButton id="trackInWorkItemContextMenuMailButton" label="Track in Work Item..." getImage="GetImageTrackInWorkItemFeature" onAction="trackInWorkItemContextMenuMailButton_Action" getPressed="trackInWorkItemContextMenuMailButton_GetPressed" />
        <button id="relatedWorkItemContextMenuMailButton" label="Related Work Item" getImage="GetImageRelatedWorkItemFeature" onAction="relatedWorkItemContextMenuMailButton_Action" getEnabled="relatedWorkItemContextMenuMailButton_GetEnabled" />
        <menuSeparator id="workItemContextMenuMailSeparator"/>
        <button id="uploadAttachmentContextMenuMailButton" label="Send attachments..." getImage="GetImageSendAttachmentsFeature" onAction="uploadAttachmentContextMenuMailButton_Action" getEnabled="uploadAttachmentContextMenuMailButton_GetEnabled" />
      </menu>
    </contextMenu>
    <contextMenu idMso="ContextMenuCalendarItem">
      <menu id="appointmentItemContextMenu" label="Team">
        <toggleButton id="trackInWorkItemContextMenuAppointmentButton" label="Track in Work Item..." getImage="GetImageTrackInWorkItemFeature" onAction="trackInWorkItemContextMenuAppointmentButton_Action" getPressed="trackInWorkItemContextMenuAppointmentButton_GetPressed" />
        <button id="relatedWorkItemContextMenuAppointmentButton" label="Related Work Item" getImage="GetImageRelatedWorkItemFeature" onAction="relatedWorkItemContextMenuAppointmentButton_Action" getEnabled="relatedWorkItemContextMenuAppointmentButton_GetEnabled" />
        <menuSeparator id="workItemContextMenuAppointmentSeparator"/>
        <button id="uploadAttachmentContextMenuAppointmentButton" label="Send attachments..." getImage="GetImageSendAttachmentsFeature" onAction="uploadAttachmentContextMenuAppointmentButton_Action" getEnabled="uploadAttachmentContextMenuAppointmentButton_GetEnabled" />
        <button id="downloadAttachmentContextMenuAppointmentButton" label="Attach document to Appointment" onAction="downloadAttachmentContextMenuAppointmentButton_Action" getImage="GetImageDownloadAttachmentFeature" />
        <menuSeparator id="teamPortalContextMenuAppointmentSeparator"/>
        <button id="insertReportContextMenuAppointmentButton" label="Insert Report" onAction="insertReportContextMenuAppointmentButton_Action" getImage="GetImageInsertReportFeature" />
        <menuSeparator id="reportContextMenuAppointmentSeparator"/>
        <button id="showBuildReportContextMenuAppointmentButton" label="Show Build Report" onAction="showBuildReportContextMenuAppointmentButton_Action" getImage="GetImageShowBuildReportFeature" getEnabled="showBuildReportContextMenuAppointmentButton_GetEnabled" />
      </menu>
    </contextMenu>
    <contextMenu idMso="ContextMenuFolder">
      <menu id="teamProjectMenuFolder" label="Team" getVisible="teamProjectMenuFolder_GetVisible">
        <button id="linkFolderToTeamProjectContextMenuFolderButton" label="Link Folder to Team Project..." visible="true" onAction="linkFolderToTeamProjectContextMenuFolderButton_Action" />
        <button id="moveWorkItemToContextMenuFolderButton" label="Move Work Items to..." onAction="moveWorkItemToContextMenuFolderButton_Action" getEnabled="MoveWorkItemToContextMenuFolderButton_GetEnabled"/>
        <button id="createSubFoldersContextMenuFolderButton" label="Create Sub Folder..." onAction="CreateSubFoldersContextMenuFolderButton_Action" getEnabled="CreateSubFoldersContextMenuFolderButton_GetEnabled"/>
      </menu>
      <menu id="teamBuildMenuFolder" label="Team" getVisible="teamBuildMenuFolder_GetVisible">
        <button id="linkFolderToTeamBuildContextMenuFolderButton" label="Link Folder to Team Build..." visible="true" onAction="linkFolderToTeamBuildContextMenuFolderButton_Action" />
        <button id="synchronizeBuildContextMenuFolderButton" label="Synchronize Builds" onAction="SynchronizeBuildContextMenuFolderButton_Action" getEnabled="SynchronizeBuildContextMenuFolderButton_GetEnabled" />
      </menu>
    </contextMenu>
  </contextMenus>
</customUI>

